ASYLUM: don't use itoa() as it's not portable (use sprintf() instead)

git-svn-id: http://asylumengine.googlecode.com/svn/trunk@564 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c
This commit is contained in:
Alex Bevilacqua
2021-05-17 15:36:21 +02:00
committed by Eugene Sandulenko
parent 1ca905680c
commit cba710ff8a
+3 -1
View File
@@ -1422,7 +1422,9 @@ void Actor::updateNumbers(int32 reaction, int32 x, int32 y) {
_numberStringY = y + 8;
_numberStringWidth = 40;
itoa(_numberValue01, _numberString01, 10);
// XXX use sprintf instead of itoa as itoa isn't part of standard
// C++ and therefore isn't available in GCC
sprintf(_numberString01, "%d", _numberValue01);
_numberFlag01 = 1;
}