[nexuiz-commits] r8357 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Dec 2 15:25:19 EST 2009
Author: div0
Date: 2009-12-02 15:25:18 -0500 (Wed, 02 Dec 2009)
New Revision: 8357
Modified:
trunk/data/qcsrc/common/gamecommand.qc
Log:
avoid crash on RPN using undefined cvar
Modified: trunk/data/qcsrc/common/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/common/gamecommand.qc 2009-12-02 19:48:11 UTC (rev 8356)
+++ trunk/data/qcsrc/common/gamecommand.qc 2009-12-02 20:25:18 UTC (rev 8357)
@@ -416,7 +416,11 @@
rpn_error = TRUE;
}
} else if(rpncmd == "load") {
+#ifdef SVQC
+ rpn_set(cvar_string_builtin(rpn_get())); // cvar name comes from user
+#else
rpn_set(cvar_string(rpn_get()));
+#endif
} else if(rpncmd == "exch") {
s = rpn_pop();
s2 = rpn_get();
More information about the nexuiz-commits
mailing list