Advertisement
Guest User

GUIScript.cpp

a guest
Apr 3rd, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. diff --git a/gemrb/plugins/GUIScript/GUIScript.cpp b/gemrb/plugins/GUIScript/GUIScript.cpp
  2. index 367f575..748e559 100644
  3. --- a/gemrb/plugins/GUIScript/GUIScript.cpp
  4. +++ b/gemrb/plugins/GUIScript/GUIScript.cpp
  5. @@ -13620,7 +13620,7 @@ static PyObject* GemRB_SpellCast(PyObject * /*self*/, PyObject* args)
  6.     core->FreeString(tmp);
  7.     print("Target: %d", spelldata.Target);
  8.     print("Range: %d", spelldata.Range);
  9. -   if(! (1<<spelldata.type) & type) {
  10. +   if(! ((1<<spelldata.type) & type)) {
  11.         return RuntimeError( "Wrong type of spell!");
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement