|
String being trimmed when I don't want it to?
|
Due to a 'typo,' an item's name was set as 'Gold Platemail '
Notice the extra space at the end.
The string holding the number of Gold Platemail I have is set as 'Gold Platemail =3' in attributes. Notice the space again.
When the system goes to load the archetype of 'Gold Platemail,' it trims out the space even though I didn't tell it to. This causes a bug. The systems look for the stats of 'Gold Platemail ' but they're saved as 'Gold Platemail' so it doesn't find them.
I tried to make an NPC convert all 'Gold Platemail ' strings to 'Gold Platemail' but the NPC automatically trims the space off the end..
Any ideas? |
|