Talk:GetSubString

Passing -1 for nCount does return the rest of the string and it does not lead to immediate crashes. However, no amount of artificial testing can ensure that there won't be any problem for some player in a real module... Inspecting the game code by stepping into it under a debugger or using something like IDA might bring certainty for a specific version of the game binaries, but even so there's no iron-clad guarantee that there won't be problems with an earlier or later version of the game. Hence we need to write interpreted script code in order to mollycoddle the native code in the interpreter and keep it safe from invalid parameters. (tested using OC v1.23, no expansions) - KnightOwl42 22:48, February 15, 2010 (UTC)