Added debug mode to LUA

This commit is contained in:
mathusummut
2019-03-06 20:20:16 +01:00
parent fa721729a7
commit 14811e5964
5 changed files with 114 additions and 68 deletions

View File

@@ -941,7 +941,7 @@ namespace Shared {
this->components = components;
deletePixels();
if (getPixelByteCount() < 0 || (h < 0 || w < 0 || components < 0)) {
if (h < 0 || w < 0 || components < 0) {
char szBuf[8096];
snprintf(szBuf, 8096, "Invalid pixmap dimensions for [%s], h = %d, w = %d, components = %d\n", path.c_str(), h, w, components);
throw game_runtime_error(szBuf);