Skip to content

Commit ae16a58

Browse files
authored
Merge pull request #90 from Necktrox/bugfix/custom-weapons
Fix OOP method-function for getProperty of custom weapons
2 parents a9e5f44 + 196fb06 commit ae16a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaWeaponDefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void CLuaWeaponDefs::AddClass ( lua_State* luaVM )
5353
lua_classfunction ( luaVM, "setAmmo", "setWeaponAmmo" );
5454
lua_classfunction ( luaVM, "setClipAmmo", "setWeaponClipAmmo" );
5555

56-
lua_classfunction ( luaVM, "getProperty", "setWeaponProperty" );
56+
lua_classfunction ( luaVM, "getProperty", "getWeaponProperty" );
5757
lua_classfunction ( luaVM, "getOwner", "getWeaponOwner" );
5858
lua_classfunction ( luaVM, "getTarget", "getWeaponTarget" );
5959
lua_classfunction ( luaVM, "getFiringRate", "getWeaponFiringRate" );

0 commit comments

Comments
 (0)