Core/Misc: Define some methods const

This commit is contained in:
Spp committed 2012-11-20 09:29:52 +01:00
1 parent ced723a53a
commit 81606e5d1e
127 files changed
+273 -269

No files matched your search

+1 -1
View File
@@ -2284,7 +2284,7 @@ class npc_wormhole : public CreatureScript
_showUnderground = urand(0, 100) == 0; // Guessed value, it is really rare though
}
uint32 GetData(uint32 type)
uint32 GetData(uint32 type) const
{
return (type == DATA_SHOW_UNDERGROUND && _showUnderground) ? 1 : 0;
}