real fix for MI2 Dialog Box crash
|Reported by:||SF/cccp_99||Owned by:||SF/khalek|
|Game:||Monkey Island 2|
A new function resStrLen() gets the length of a string that can possibly have special characters starting with FF, and properly determines its length. The code was borrowed from line 646 string.cpp and slightly modified to just count characters.
Since the new gui relies on the String class, I substituted the strlen()'s in str.cpp with the new function. It's equivalent to strlen() for all regular strings, which won't have character FF anyway, right? :)
The older fixme was removed.
Ticket imported from: #609508. Ticket imported from: patches/152.