summaryrefslogtreecommitdiff
path: root/src/script/squirrel.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-18 15:41:38 +0000
committerrubidium <rubidium@openttd.org>2010-01-18 15:41:38 +0000
commitb1bd1067032c51a8d88818488c924c82a8678454 (patch)
treebaffff9722b0568418812cc9eff052edae02f715 /src/script/squirrel.hpp
parenta39a446e8faf99568eb8924535fd0034db00bb8e (diff)
downloadopenttd-b1bd1067032c51a8d88818488c924c82a8678454.tar.xz
(svn r18862) -Fix [FS#3544]: don't pass AI strings through iconv
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r--src/script/squirrel.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index 7d8e05dad..43aaa11fa 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -175,7 +175,7 @@ public:
/**
* Convert a Squirrel-object to a string.
*/
- static const char *ObjectToString(HSQOBJECT *ptr) { return FS2OTTD(sq_objtostring(ptr)); }
+ static const char *ObjectToString(HSQOBJECT *ptr) { return SQ2OTTD(sq_objtostring(ptr)); }
/**
* Convert a Squirrel-object to an integer.
@@ -206,7 +206,7 @@ public:
/**
* Throw a Squirrel error that will be nicely displayed to the user.
*/
- void ThrowError(const char *error) { sq_throwerror(this->vm, OTTD2FS(error)); }
+ void ThrowError(const char *error) { sq_throwerror(this->vm, OTTD2SQ(error)); }
/**
* Release a SQ object.