mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
Added debug mode to LUA
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user