projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merged new collision detection branch back into mainline
[supertux.git]
/
src
/
scripting
/
wrapper.cpp
diff --git
a/src/scripting/wrapper.cpp
b/src/scripting/wrapper.cpp
index
529d889
..
a175623
100644
(file)
--- a/
src/scripting/wrapper.cpp
+++ b/
src/scripting/wrapper.cpp
@@
-1060,9
+1060,10
@@
static SQInteger Player_add_bonus_wrapper(HSQUIRRELVM vm)
}
try {
- _this->add_bonus(arg0);
+
bool return_value =
_this->add_bonus(arg0);
- return 0;
+ sq_pushbool(vm, return_value);
+ return 1;
} catch(std::exception& e) {
sq_throwerror(vm, e.what());