diff options
author | yexo <yexo@openttd.org> | 2011-11-10 20:07:14 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-11-10 20:07:14 +0000 |
commit | 72b1fffe825c35701e3f1aa6389c8cc4a99b9155 (patch) | |
tree | 7ccda6de15d8900f51097088665f355bc42e616a /src/3rdparty/squirrel | |
parent | 37797164caf07c41e28049b47896a708444c8edf (diff) | |
download | openttd-72b1fffe825c35701e3f1aa6389c8cc4a99b9155.tar.xz |
(svn r23187) -Fix (r23186): MSVC allowed non-const where const was mandatory
Diffstat (limited to 'src/3rdparty/squirrel')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqbaselib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqbaselib.cpp b/src/3rdparty/squirrel/squirrel/sqbaselib.cpp index fc90e97eb..b170ac336 100644 --- a/src/3rdparty/squirrel/squirrel/sqbaselib.cpp +++ b/src/3rdparty/squirrel/squirrel/sqbaselib.cpp @@ -485,7 +485,7 @@ static SQInteger array_resize(HSQUIRRELVM v) //QSORT ala Sedgewick -bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,SQObjectPtr &a,SQObjectPtr &b,SQInteger func,SQInteger &ret) +bool _qsort_compare(HSQUIRRELVM v,SQObjectPtr &arr,const SQObjectPtr &a,const SQObjectPtr &b,SQInteger func,SQInteger &ret) { if(func < 0) { if(!v->ObjCmp(a,b,ret)) return false; @@ -511,7 +511,7 @@ struct qsort_cmp { HSQUIRRELVM v; SQInteger func; - bool operator() (SQObjectPtr &a, SQObjectPtr &b) const + bool operator() (const SQObjectPtr &a, const SQObjectPtr &b) const { SQInteger res; SQObjectPtr dummy; |